<?php
/**
 * 车辆档案类
 * @Author    紫梦
 * @DateTime  2017-11-10
 * @copyright 响响租车
 * @version   1.0
 * @UpdateTime 2017-11-10
 */
namespace app\index\controller;
use app\common\model\Cars;


class Record extends Base
{


    public function ajaxGetCarUid($query = 0)
    {
        $where = '%'.$query.'%';

        $data = Cars::where('car_unique_id','like',$where)->limit(10)->select();

        return $data;

    }

    public function ajaxGetCarSn($query = 0)
    {
        $where = '%'.$query.'%';

        $data = Cars::where('car_sn','like',$where)->limit(10)->select();

        return $data;
    }
    
}